package com.dou.mapper;

import com.dou.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/07/2021/7/19/11:14
 * @Description:
 */
@Mapper
public interface DepartmentDao{


    //获取所有的部门信息
    public Collection<Department> getDepartments();
    //通过id得到部门
    public Department getDepartmentById(Integer did);
}

